import request from '@/utils/request'

export function save(data) {
  return request({
    url: '/api/pds/pdsFileModelPbs/saveOrUpdateDraft',
    method: 'post',
    data
  })
}

export function saveSuper(data) {
  return request({
    url: '/api/pds/pdsFileModelPbs/correctFile',
    method: 'post',
    data
  })
}

export function importModel(data) {
  return request.post({
    url: '/api/pds/pdsFileModelPbs/importModelPbs',
    data
  })
}

export function importOldModel(data) {
  return request.post({
    url: '/api/pds/pdsFileArticlePcs/getDetailByArticleNo',
    data
  })
}
export function modelExtends(params) {
  return request({
    url: '/api/pds/pdsFileModelPbs/modelExtends',
    method: 'get',
    params
  })
}

export function modelDetail(data) {
  return request.post({
    url: '/api/pds/pdsFileModelPbs/getFileModelDetails',
    data
  })
}
export function modelCompare(data) {
  return request({
    url: '/api/pds/pdsFileModelPbs/getFileModelPbsCompareDetail',
    method: 'post',
    data
  })
}
